<?php


namespace app\pc\controller\base;


use app\pc\service\base\StudentService;
use app\BaseController;
use think\facade\Request;
use think\response\Json;

class Login extends BaseController
{
    /**
     * 学生登录
     * @param StudentService $adminService
     * @return Json
     */
    public function login(StudentService $studentService): Json
    {
        $params['username'] = Request::param('username/s', '');
        $params['password'] = Request::param('password/s', '');
        return $studentService->login($params['username'], $params['password'], 'pc');
    }
}